package com.example.quartz3.controller;

import com.example.quartz3.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/demo")
@RestController
public class DemoController {

    @Autowired
    private DemoService demoService;
    @GetMapping("/start")
    public String startJob(String name){
        String result = demoService.startJob("name11");
        return result;
    }
}
